package com.uzai.console.dto.feign.tborder;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Auther: liuqi
 * @Date: 2021/8/10 14:58
 * @Description:
 */
@ApiModel("淘宝订单通过API下载参数")
@Data
public class TbOrderDownloadDto {
    @ApiModelProperty("淘宝联盟token")
    private String accessToken;
    @ApiModelProperty("淘宝联盟账号id")
    private Long userId;
    @ApiModelProperty("淘宝联盟账号名称")
    private String userName;
    @ApiModelProperty("订单场景(1:常规订单，2:渠道订单，3:会员订单)")
    private Integer orderScene;
    @ApiModelProperty("查询时间类型,(1：创建时间，2:付款时间，3:结算时间，4-更新时间)")
    private Integer queryType;
    @ApiModelProperty("查询开始时间")
    private Integer beginTime;
    @ApiModelProperty("查询结束时间")
    private Integer endTime;
    @ApiModelProperty("转链类型（0-返利；1-导购）")
    private Integer turnlink;

    public Integer getTurnlink() {
        if(turnlink == null){
            turnlink = 0;
        }
        return turnlink;
    }

    public void setTurnlink(Integer turnlink) {
        this.turnlink = turnlink;
    }
}
